In number theory, a Carmichael number is a composite positive integer which satisfies the congruence
for all integers which are relatively prime to (see modular arithmetic). They are named for Robert Carmichael. The Carmichael numbers are the Knödel numbers K1.
Contents |
Fermat's little theorem states that all prime numbers have the above property. In this sense, Carmichael numbers are similar to prime numbers; in fact, they are called Fermat pseudoprimes. Carmichael numbers are sometimes also called absolute Fermat pseudoprimes.
Carmichael numbers are important because they pass the Fermat primality test but are not actually prime. Since Carmichael numbers exist, this primality test cannot be relied upon to prove the primality of a number, although it can still be used to prove a number is composite.
Still, as numbers become larger, Carmichael numbers become very rare. For example, there are 20,138,200 Carmichael numbers between 1 and 1021 (approximately one in 50 billion numbers).[1] This makes tests based on Fermat's Little Theorem slightly risky compared to others such as the Solovay-Strassen primality test.
An alternative and equivalent definition of Carmichael numbers is given by Korselt's criterion.
It follows from this theorem that all Carmichael numbers are odd, since any even composite number that is square-free (and hence has only one prime factor of two) will have at least one odd prime factor, and thus results in an even dividing an odd, a contradiction. (The oddness of Carmichael numbers also follows from the fact that is a Fermat witness for any even number.) From the criterion it also follows that Carmichael numbers are cyclic.[2][3]
Korselt was the first who observed the basic properties of Carmichael numbers, but he could not find any examples. In 1910, Carmichael found the first and smallest such number, 561, and hence the name "Carmichael number".
That 561 is a Carmichael number can be seen with Korselt's criterion. Indeed, is square-free and , and .
The next few Carmichael numbers are (sequence A002997 in OEIS):
J. Chernick proved a theorem in 1939 which can be used to construct a subset of Carmichael numbers. The number is a Carmichael number if its three factors are all prime. Whether this formula produces an infinite quantity of Carmichael numbers is an open question (though it is implied by Dickson's conjecture).
Paul Erdős heuristically argued there should be infinitely many Carmichael numbers. In 1994 it was shown by W. R. (Red) Alford, Andrew Granville and Carl Pomerance that there really do exist infinitely many Carmichael numbers. Specifically, they showed that for sufficiently large , there are at least Carmichael numbers between 1 and .[4]
Löh and Niebuhr in 1992 found some huge Carmichael numbers, including one with 1,101,518 factors and over 16 million digits.
Carmichael numbers have at least three positive prime factors. The first Carmichael numbers with prime factors are (sequence A006931 in OEIS):
k | |
---|---|
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |
The first Carmichael numbers with 4 prime factors are (sequence A074379 in OEIS):
i | |
---|---|
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 |
The second Carmichael number (1105) can be expressed as the sum of two squares in more ways than any smaller number. The third Carmichael number (1729) is the Hardy-Ramanujan Number: the smallest number that can be expressed as the sum of two cubes in two different ways.
Let denote the number of Carmichael numbers less than or equal to . The distribution of Carmichael numbers by powers of 10:[1]
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | |
1 | 7 | 16 | 43 | 105 | 255 | 646 | 1547 | 3605 | 8241 | 19279 | 44706 | 105212 | 246683 | 585355 | 1401644 | 3381806 | 8220777 | 20138200 |
In 1956, Erdős proved that[5]
for some constant . He further gave a heuristic argument suggesting that this upper bound should be close to the true growth rate of . The table below gives approximate minimal values for the constant k in the Erdős bound for as n grows:
4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 21 | |
k | 2.19547 | 1.97946 | 1.90495 | 1.86870 | 1.86377 | 1.86293 | 1.86406 | 1.86522 | 1.86598 | 1.86619 |
In the other direction, Alford, Granville and Pomerance proved in 1994[4] that for sufficiently large X,
In 2005, this bound was further improved by Harman[6] to
and then has subsequently improved the exponent to just over .
Regarding the asymptotic distribution of Carmichael numbers, there have been several conjectures. In 1956, Erdős[5] conjectured that there were Carmichael numbers for X sufficiently large. In 1981, Pomerance[7] sharpened Erdős' heuristic arguments to conjecture that there are
Carmichael numbers up to X. However, inside current computational ranges (such as the counts of Carmichael numbers performed by Pinch[1] up to 1021), these conjectures are not yet borne out by the data. Utilizing finer estimates for the distribution of smooth numbers, Aran Nayebi[8] has proposed a conjecture (defined as the function on pg. 31) that is asymptotically the same as Pomerance's, but more closely models the actual distribution of Carmichael numbers for the small bounds computed by Pinch and may provide accurate predictions for counts with bounds (< 10100) yet to be computed, particularly since its derivation involves a sharpening of Pomerance's (and Erdős') heuristic arguments.
Both prime and Carmichael numbers satisfy the following equality:
Carmichael numbers can be generalized using concepts of abstract algebra.
The above definition states that a composite integer n is Carmichael precisely when the nth-power-raising function pn from the ring Zn of integers modulo n to itself is the identity function. The identity is the only Zn-algebra endomorphism on Zn so we can restate the definition as asking that pn be an algebra endomorphism of Zn. As above, pn satisfies the same property whenever n is prime.
The nth-power-raising function pn is also defined on any Zn-algebra A. A theorem states that n is prime if and only if all such functions pn are algebra endomorphisms.
In-between these two conditions lies the definition of Carmichael number of order m for any positive integer m as any composite number n such that pn is an endomorphism on every Zn-algebra that can be generated as Zn-module by m elements. Carmichael numbers of order 1 are just the ordinary Carmichael numbers.
Korselt's criterion can be generalized to higher-order Carmichael numbers, as shown by Howe.[9]
A heuristic argument, given in the same paper, appears to suggest that there are infinitely many Carmichael numbers of order m, for any m. However, not a single Carmichael number of order 3 or above is known.